<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Home extends MY_Controller {
    public $data=array();
    
    function __construct() {
        parent::__construct();
        if (!$this->users_lib->is_login()) {
            redirect('welcome');
        }
        $this->template->set_layout('two_cols');
    }

    function index(){        
        $this->template
				->inject_partial('account-name',$this->users_lib->get_fullname())
                ->set_partial('sidebar-left','partials/sidebar')
                ->title('Home')
                ->build('home-main');
    }
}
